package com.hmdp.controller;

import com.hmdp.dto.Result;
import com.hmdp.service.ISignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Slf4j
@RestController
@RequestMapping("/sign")
public class SignController {
    @Resource
    private ISignService signService;

    @GetMapping("/{id}")
    public Result querySignById(@PathVariable("id") Long id) {
        return signService.queryById(id);
    }
}
